package com.atguigu.gmall.payment.pay.impl;

import com.atguigu.gmall.payment.model.PaymentInfo;
import com.atguigu.gmall.payment.pay.PayAPI;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component("WechatPay") //WechatPay前端提交的付款方式
@Slf4j
public class WechatServiceWay implements PayAPI {

    /**
     * 微信支付
     * @param paymentInfo 支付信息
     * @return 支付方式
     */
    @Override
    public String createPayPage(PaymentInfo paymentInfo) {
        log.info("微信支付");
        return "WechatPay";
    }
}